package com.senthink.gl.business.auth;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

/**
 * 登录请求时，接口传递的数据对象
 *
 * @author Ethan
 * @date 2017/11/17
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "登录请求时，接口传递的数据对象")
@Data
public class LoginRequest {

    @NotBlank(message = "{login.username.notBlank}")
    private String username;

    @NotBlank(message = "{login.password.notBlank}")
    private String password;

}
